package com.example.pre.model.vo;

import java.util.Collection;

import com.example.pre.model.BillingData;
import com.example.pre.model.Reimbursement;

/*
 * 报销实体VO
 */
public class ReimbursementVO {

	private int id;// 报销申请id
	private String type;// 报销的类型
	private String description;// 报销事由
	private int createUserId;// 用户id
	private Long createTime;// 创建时间
	private int updateUserId;// 修改者id
	private Long updateTime;// 修改时间
	private String status;// 报销状态
	private Collection<BillingData> billingDatas; // 报销明细集合

	public ReimbursementVO() {
		super();
	}

	public ReimbursementVO(Reimbursement reimbursement, Collection<BillingData> billingDatas) {
		this.id = reimbursement.getId();
		this.type = reimbursement.getType();
		this.description = reimbursement.getDescription();
		this.createUserId = reimbursement.getCreateUserId();
		this.createTime = reimbursement.getCreateTime();
		this.updateUserId = reimbursement.getCreateUserId();
		this.updateTime = reimbursement.getUpdateTime();
		this.status = reimbursement.getStatus();
		this.billingDatas = billingDatas;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(int createUserId) {
		this.createUserId = createUserId;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public int getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(int updateUserId) {
		this.updateUserId = updateUserId;
	}

	public Long getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Long updateTime) {
		this.updateTime = updateTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Collection<BillingData> getBillingDatas() {
		return billingDatas;
	}

	public void setBillingDatas(Collection<BillingData> billingDatas) {
		this.billingDatas = billingDatas;
	}

	@Override
	public String toString() {
		return "ReimbursementVO [id=" + id + ", type=" + type + ", description=" + description + ", createUserId="
				+ createUserId + ", createTime=" + createTime + ", updateUserId=" + updateUserId + ", updateTime="
				+ updateTime + ", status=" + status + ", billingDatas=" + billingDatas + "]";
	}

}
